package com.gg.user.contorller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;

import com.gg.user.service.UserService;

import helpers.baseservlet.BaseServlet;

@WebServlet("/user/UserTestServlet")
public class UserTestServlet extends BaseServlet {
	@Autowired
	private UserService userService;
	protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {
	response.getWriter().print(userService.getAllUsers());
	}
}